<template>
  <input value="0" type="text" @input="setNumber" />
</template>

<script>
export default {
  name: "CalInput",
  props: {
    field: String,
  },
  methods: {
    setNumber(e) {
      const val = Number(e.target.value);
      // console.log(val);

      // console.log(this.field);
      //firstNumber/secondNumber

      this.$emit("dispatch", "SET_NUMBER", this.field, val);
    },
  },
};
</script>